package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.GET_BANK_INFO;

import androidx.annotation.NonNull;

import com.uduew.sjd.bean.HttpBean;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class GetBankInfoApi implements IRequestApi, IRequestType {

    @NonNull
    @Override
    public String getApi() {
        return GET_BANK_INFO;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ResGetBankInfoBean extends HttpBean {
        private ArrayList<HesitancyBean> hesitancy;

        public ArrayList<HesitancyBean> getHesitancy() {
            return hesitancy;
        }
    }

    public static final class HesitancyBean {
        private boolean isSelected;
        private String beastly;
        private String aerification;
        private String melaleuca;
        private String yod;
        private boolean hipshot;

        public String getBeastly() {
            return beastly;
        }

        public String getAerification() {
            return aerification;
        }

        public String getMelaleuca() {
            return melaleuca;
        }

        public String getYod() {
            return yod;
        }

        public boolean isHipshot() {
            return hipshot;
        }

        public boolean isSelected() {
            return isSelected;
        }

        public void setSelected(boolean selected) {
            isSelected = selected;
        }
    }
}

